/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package excom;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import ui.MainForm;
import utils.MsgboxHelper;

/**
 *
 * @author chanhpm
 */
public class JMailBox extends JBox {
    public JMailBox(){
        super();
        initComponents();
    }

    private JButton inbox;
    private JButton outbox;
    private JButton draft;
    private JButton delMsg;
    public void initComponents(){
        inbox = createBarButton("Inbox",new ImageIcon(MainForm.ResourceDir + "icon_inbox.gif"));
        outbox = createBarButton("Outbox",new ImageIcon(MainForm.ResourceDir + "outbox.gif"));
        draft = createBarButton("Drafts", new ImageIcon(MainForm.ResourceDir + "draft.jpeg"));
        delMsg = createBarButton("Del message",new ImageIcon(MainForm.ResourceDir + "deletemsg.png"));
        fireJBoxEvent(inbox);
        fireJBoxEvent(outbox);
        fireJBoxEvent(draft);
        fireJBoxEvent(delMsg);
        add(inbox);
        add(outbox);
        add(draft);
        add(delMsg);
    }
}
